package com.vdf.sisconsolid.controller;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;

import com.vdf.sisconsolid.persistencemodule.dao.FamilyDao;
import com.vdf.sisconsolid.persistencemodule.dto.KeyValueBean;
import com.vdf.sisconsolid.rest.requestresponsedata.ReqRespData;
import com.vdf.sisconsolid.rest.requestresponsedata.RequestAndRespondHandler;

public class FamilyController {

	private static Logger log = Logger.getLogger(FamilyController.class);

	public static Map<String, Object> processGetFamilies() {
		log.info("Into processGetNets");
		List<KeyValueBean> familyBeanList = new FamilyDao().getFamilyList();
		log.info("familyBeanList size: " + familyBeanList.size());
		return RequestAndRespondHandler.getResponseRest(true,
				ReqRespData.data.toString(), "Loaded families", familyBeanList);
	}

}
